package com.hckjsec.website.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.website.mapper.WebSiteLawstatuteMapper;
import com.hckjsec.website.domain.WebSiteLawstatute;
import com.hckjsec.website.service.IWebSiteLawstatuteService;

/**
 * 法律法规Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-18
 */
@Service
public class WebSiteLawstatuteServiceImpl implements IWebSiteLawstatuteService 
{
    @Autowired
    private WebSiteLawstatuteMapper webSiteLawstatuteMapper;

    /**
     * 查询法律法规
     * 
     * @param id 法律法规ID
     * @return 法律法规
     */
    @Override
    public WebSiteLawstatute selectWebSiteLawstatuteById(Long id)
    {
        return webSiteLawstatuteMapper.selectWebSiteLawstatuteById(id);
    }

    /**
     * 查询法律法规列表
     * 
     * @param webSiteLawstatute 法律法规
     * @return 法律法规
     */
    @Override
    public List<WebSiteLawstatute> selectWebSiteLawstatuteList(WebSiteLawstatute webSiteLawstatute)
    {
        return webSiteLawstatuteMapper.selectWebSiteLawstatuteList(webSiteLawstatute);
    }

    /**
     * 新增法律法规
     * 
     * @param webSiteLawstatute 法律法规
     * @return 结果
     */
    @Override
    public int insertWebSiteLawstatute(WebSiteLawstatute webSiteLawstatute)
    {
        return webSiteLawstatuteMapper.insertWebSiteLawstatute(webSiteLawstatute);
    }

    /**
     * 修改法律法规
     * 
     * @param webSiteLawstatute 法律法规
     * @return 结果
     */
    @Override
    public int updateWebSiteLawstatute(WebSiteLawstatute webSiteLawstatute)
    {
        return webSiteLawstatuteMapper.updateWebSiteLawstatute(webSiteLawstatute);
    }

    /**
     * 批量删除法律法规
     * 
     * @param ids 需要删除的法律法规ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteLawstatuteByIds(Long[] ids)
    {
        return webSiteLawstatuteMapper.deleteWebSiteLawstatuteByIds(ids);
    }

    /**
     * 删除法律法规信息
     * 
     * @param id 法律法规ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteLawstatuteById(Long id)
    {
        return webSiteLawstatuteMapper.deleteWebSiteLawstatuteById(id);
    }
}
